package com.cxhc.system.service.cockpit.impl;

import com.cxhc.system.domain.cockpit.ViidFace;
import com.cxhc.system.mapper.cockpit.ViidFaceMapper;
import com.cxhc.system.service.cockpit.IViidFaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ViidFaceServiceImpl implements IViidFaceService {

    /** 查询影像前缀 */
    @Value("${image.url}")
    private String URL;


    @Autowired
    private ViidFaceMapper viidFaceMapper;

    @Override
    public List<ViidFace> queryFace() {
        List<ViidFace> viidFaces = viidFaceMapper.queryFaceList();
        for (ViidFace viidFace : viidFaces) {
            viidFace.setStorageUrl1(URL + viidFace.getStorageUrl1());
        }
        return viidFaces;
    }
}
